Skip to content

Speed up test_sorting_s3_nwb_zarr#4537

Closed
chrishalcrow wants to merge 1 commit intoSpikeInterface:mainfrom
chrishalcrow:speed-up-test_sorting_s3_nwb_remfile
Closed

Speed up test_sorting_s3_nwb_zarr#4537
chrishalcrow wants to merge 1 commit intoSpikeInterface:mainfrom
chrishalcrow:speed-up-test_sorting_s3_nwb_remfile

Conversation

@chrishalcrow
Copy link
Copy Markdown
Member

While investigating the speed regression for full tests from #4515, I noticed that one of our longest tests test_sorting_s3_nwb_zarr was slow (before, took 4 minutes here https://github.com/SpikeInterface/spikeinterface/actions/runs/23709486678 and after, took 15 minutes here: https://github.com/SpikeInterface/spikeinterface/actions/runs/24629667731/job/72014705334 - the reason for this regression is still unknown).

The reason is that check_sortings_equal has to stream the entire file. We can prevent this by frame_sliceing, and only doing a check_sortings_equal to the time sliced sorting. Should speed our full test suite up by 10%!

@chrishalcrow chrishalcrow added the testing Related to test routines label Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Related to test routines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant